package com.bskj.common.enums;

public enum CouponTimeTypeEnum {
	every_day(1,"每天"),every_week(2,"每周"),every_month(3,"每月"),annually(4,"每年");
	private int key;
	private String value;
	private CouponTimeTypeEnum(int key, String value) {
		this.key = key;
		this.value = value;
	}
	public int getKey() {
		return key;
	}
	public void setKey(int key) {
		this.key = key;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public static CouponTimeTypeEnum get(int key) {
		for(CouponTimeTypeEnum couponTimeTypeEnum : CouponTimeTypeEnum.values()) {
			if(couponTimeTypeEnum.getKey() == key) {
				return couponTimeTypeEnum;
			}
		}
		return null;
	}
}
